import 'package:flutter/material.dart';

import 'package:body_measurement/widgets/aside_nav.dart';

class TaskDetailPage extends StatefulWidget {
  const TaskDetailPage({super.key});

  @override
  State<TaskDetailPage> createState() => _TaskDetailPageState();
}

class _TaskDetailPageState extends State<TaskDetailPage> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(toolbarHeight: 0),
      body: Row(
        children: <Widget>[
          AsideNav(ModalRoute.of(context)?.settings.arguments as String),
          Expanded(
            flex: 1,
            child: Container(
              width: double.infinity,
              color: const Color(0xffededed),
              child: const Row(
                children: <Widget>[
                  SizedBox(
                    width: 260.0,
                    height: double.infinity,
                    child: DecoratedBox(
                      decoration: BoxDecoration(
                        border: Border(right: BorderSide(color: Color(0xffe4e4e4), width: 1.0)),
                      ),
                      child: Padding(
                        padding: EdgeInsets.all(8.0),
                        child: Column(
                          children: <Widget>[
                            Padding(
                              padding: EdgeInsets.symmetric(vertical: 20.0, horizontal: 10.0),
                              child: Text(
                                '湖北省检察院',
                                style: TextStyle(fontSize: 20.0, fontWeight: FontWeight.w400),
                              ),
                            ),
                            // 分公司列表
                            TextField(
                              decoration: InputDecoration(
                                hintText: '请输入关键词',
                                prefixIcon: Icon(Icons.search),
                              ),
                            ),
                            // 员工列表或部门列表
                          ],
                        ),
                      ),
                    ),
                  ),
                  Expanded(
                    flex: 1,
                    child: SizedBox(
                      width: double.infinity,
                      height: double.infinity,
                    ),
                  ),
                ],
              ),
            ),
          ),
        ],
      ),
    );
  }
}
